package com.candy.dao;

import com.candy.bean.AccountCard;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface AccountCardMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AccountCard record);

    int insertSelective(AccountCard record);

    AccountCard selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AccountCard record);

    int updateByPrimaryKey(AccountCard record);

//    入账
    int addMoney(@Param("username") String username, @Param("money") Integer money);
//   出账
    int subMoney(@Param("username") String username, @Param("money") Integer money);
}